package co.beto.commons
{
	import mx.collections.ArrayCollection;
	import mx.collections.IList;
	import mx.containers.Box;
	
	public class Utils
	{
		public function Utils()
		{
		}
		/* public static function createCollabornMask():Sprite
		{
			var roundedMask:Sprite = new Sprite();
			roundedMask.graphics.clear();
            roundedMask.graphics.beginFill(0x000000);
            roundedMask.graphics.drawRoundRect(0, 0, contener.width, contener.height, 0, 0);
            return roundedMask;
		} */
		
		public static function reorderPickedColor(pickedColorArr:Array, color:String):Array
		{
			if(pickedColorArr.length == 10)
	    	{
	    		for(var m:int = 0; m < 10; m++)
	    		{
	    			pickedColorArr[m] = pickedColorArr[m+1];
	    		}
	    		pickedColorArr.pop();
	    	}
	    	pickedColorArr.push(color);
	    	
	    	return pickedColorArr;
		}
		
		public static function createBoxHasPickedColorAsBg(color:String):Box
		{
			var newBox:Box = new Box();
			newBox.setStyle('backgroundColor', color);
		    		
    		newBox.width = 13.8;
    		newBox.height = 13.8;
    		newBox.setStyle('borderStyle', 'solid');
    		newBox.setStyle('borderColor', '#969696');
    		
    		return newBox;
		}
	}
}